package com.srit.migration.business.bean;

import java.util.List;

/**
 * @author guan
 *
 */
public class Db {
	private Integer id;// 主键
	private String name;// 名称
	// private EnumDbType enumDbType;// 数据库类型
	private String username;// 登陆帐户
	private String password;// 登陆密码
	private String url;// 连接数据库地址
	private Integer dbTypeId;
	private DbType dbType;// 是什么类型的数据库
	private boolean delete = true;// 是否已删除
	private List<DbTable> dbTables;// 数据库中的表
	private boolean target = false;// 是否为创建目标的数据库

	public void setUsername(String username) {
		this.username = username;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public String getUrl() {
		return url;
	}

	public void setUrl(String url) {
		this.url = url;
	}

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getUsername() {
		return username;
	}

	public boolean isTarget() {
		return target;
	}

	public void setTarget(boolean target) {
		this.target = target;
	}

	public Integer getDbTypeId() {
		return dbTypeId;
	}

	public void setDbTypeId(Integer dbTypeId) {
		this.dbTypeId = dbTypeId;
	}

	public boolean isDelete() {
		return delete;
	}

	public void setDelete(boolean delete) {
		this.delete = delete;
	}

	public DbType getDbType() {
		return dbType;
	}

	public void setDbType(DbType dbType) {
		this.dbType = dbType;
	}

	public List<DbTable> getDbTables() {
		return dbTables;
	}

	public void setDbTables(List<DbTable> dbTables) {
		this.dbTables = dbTables;
	}

}
